﻿using System.Collections;
using System.Collections.Generic;
using System.Xml;
using UnityEngine;

public class ReadXmlMain : MonoBehaviour
{
    
    // Start is called before the first frame update
    void Start()
    {

        //for (int i = 0; i < ReadXml.Instance.ContentNodeList.Count; i++)
        //{
        //    Debug.Log(ReadXml.Instance.ContentNodeList[i].Name);
        //}
        //for (int i = 0; i < ReadXml.Instance.ContentNodeList[0].ChildNodes.Count; i++)
        //{
        //    Debug.Log(ReadXml.Instance.ContentNodeList[0].ChildNodes[i].Name);
        //}
        //for (int i = 0; i < ReadXml.Instance.loadXmlNode(0, 0).ChildNodes.Count; i++)
        //{
        //    Debug.Log(ReadXml.Instance.Read(0, 0,  i));
        //}
        //int[] a = { 0, 0, 0, 5 };
        PrintLevels(1,1,1,1);

    }
    public void PrintLevels(params int[] levels)
    {
        //foreach (int level in levels)
        for (int i = 0; i < levels.Length; i++)
        {
            Debug.Log(levels[i]);
        }

    }


    // Update is called once per frame
    void Update()
    {
        
    }
}
